package com.controller;
import com.service.IOperLogService;
import com.until.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ fileName:StatiticsController
 * @ description:
 * @ author:zhz
 * @ createTime:2022/5/4 17:34
 * @ version:1.0.0
 */
@RestController
@RequestMapping("statitics")
public class StatiticsController extends BaseController{

    @Resource
    private IOperLogService operLogService;

    //可能要依赖注入多个服务层
  /*  @Resource
    private JoinStockService joinStockService;*/


    /**
     * 根据年月查询图标数据
     * @param monthDay
     * @return
     */
    @GetMapping("showEchartsByOperLog")
    public Result showEchartsByOperLog(String monthDay){
     return success(operLogService.showEchartsByOperationLog(monthDay));
    }

    //其他统计继续在这写方法
}
